package com.weds.edpf.core .service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.List;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.mapper .TtDevMapper;
import com.weds.edpf.core.entity .TtDevEntity;

/**
 * @Author sxm
 * @Description TtDev管理
 * @Date 2020-06-15
 */
@Service
public class TtDevService extends BaseService {

	@Autowired
	private TtDevMapper ttDevMapper;

	private Logger log = LogManager.getLogger();

	public int deleteByPrimaryKey(Integer ttXh) {
		return ttDevMapper.deleteByPrimaryKey(ttXh);
	}

	public int insert(TtDevEntity record) {
		return ttDevMapper.insert(record);
	}

	public int insertSelective(TtDevEntity record) {
		return ttDevMapper.insertSelective(record);
	}

	public TtDevEntity selectByPrimaryKey(Integer ttXh) {
		return ttDevMapper.selectByPrimaryKey(ttXh);
	}

	public int updateByPrimaryKeySelective(TtDevEntity record) {
		return ttDevMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(TtDevEntity record) {
		return ttDevMapper.updateByPrimaryKey(record);
	}

    	public List<TtDevEntity> selectListByEntity(TtDevEntity record) {
		return ttDevMapper.selectListByEntity(record);
	}
	
	

        public int deleteBatchByKeys(List<TtDevEntity> list) {
        return ttDevMapper.deleteBatchByKeys(list);
    }
    
    	public int insertBatch(List<TtDevEntity> list) {
		return ttDevMapper.insertBatch(list);
	}
	}
